package com.ruoyi.goods.GoodsStore.domain;

import com.ruoyi.common.annotation.Log;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物品库存对象 goods_store
 *
 * @author ruoyi
 * @date 2022-11-28
 */
@Setter@Getter
@TableName("goods_store")
public class GoodsStore extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 物品id */
    @Excel(name = "物品id")
    @TableField("goods_id")
    private Long goodsId;

    /** 仓库id */
    @Excel(name = "仓库id")
    @TableField("store_id")
    private Long storeId;

    /** 库存数量 */
    @Excel(name = "库存数量")
    @TableField("amounts")
    private Integer amounts;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsId", getGoodsId())
            .append("storeId", getStoreId())
            .append("amounts", getAmounts())
            .toString();
    }
}
